Music Object Extension - Song Info


  Contents

About This Extension

The Song Info extension provides additional features for displaying an RMF file's copyright information in a pop-up window. This extension is also useful in that it allows you to conveniently display certain song information fields that may not be displayed in the Beatnik Player's standard "Copyright Information" window, such as the GENRE, SUBGENRE, TEMPO DESCRIPTION, ORIGINAL SOURCE, PLAYLENGTH, and SIZE fields.

What's New in the Latest Version

There is a dedicated version history for this extension, where you will be able to find out about the new features and possible issues with the most recent version. The version history for this extension is independent of the version history for the core Music Object API.

Getting This Extension

To get the "music-object-x-song-info.js" JavaScript file that implements this extension, simply right-click on this link (click-and-hold for Mac users). Then, from the menu that pops up, select the 'Save Link As...' or 'Save Target As...' option and save the file as "music-object-x-song-info.js" into an appropriate folder of the local copy of your Web site.

In case you have problems saving the file using the above link, the "music-object-x-song-info.js" file can also be found inside the documentation's "javascript" folder, along with the "music-object.js" file.

Dependencies

In order to use this extension, the following JavaScript file(s) must first be sourced in...

For more information on using extensions, consult the section About Music Object Extensions.

Reference

 Name   Short Description 
Instance Methods
showSongInfo Lets you display the copyright and other information for an RMF file that is loaded into the Music Object instance.
Static Properties
Music.songInfoFieldNameStyle A string variable, specifying the default value that should be used for the SongInfoFieldNameStyleSTR parameter, if this parameter is not specified when calling the showSongInfo instance method.
Music.songInfoFields A string variable, specifying the default value that should be used for the SongInfoFieldsSTR parameter, if this parameter is not specified when calling the showSongInfo instance method.
Music.songInfoFieldValueStyle A string variable, specifying the default value that should be used for the SongInfoFieldValueStyleSTR parameter, if this parameter is not specified when calling the showSongInfo instance method.
Music.songInfoImageURL A string variable, specifying the default value that should be used for the SongInfoImageUrlSTR parameter, if this parameter is not specified when calling the showSongInfo instance method.
Music.songInfoWindow An object reference, being a handle to the song info window that is popped open by the showSongInfo instance method.
Common Parameters
SongInfoFieldsSTR A string, specifying the song info fields that should be displayed, as well as the order in which they should appear.

Instance Methods

 showSongInfo

 
 CATEGORY   Instance Method 
 MODULE   Music Object Extension - Song Info 
 Min. Player Version   1.3.0 
 File Types Supported   RMF 
 

The showSongInfo instance method lets you display the copyright and other information for an RMF file that is loaded into the Music Object instance

SYNTAX    showSongInfo (
   SongInfoFieldsSTR ,
   SongInfoImageUrlSTR ,
   SongInfoFieldNameStyleSTR ,
   SongInfoFieldValueStyleSTR
)

PARAMETERS
SPECIAL VALUES
VARIATIONS
Static Properties

 Music.songInfoFieldNameStyle

 
 CATEGORY   Static Property 
 MODULE   Music Object Extension - Song Info 
 Type   string 
 Default Value   -- see below -- 
 Access   read / write 
 

The Music.songInfoFieldNameStyle static property is s string variable, specifying the default value that should be used for the SongInfoFieldNameStyleSTR parameter, if this parameter is not specified when calling the showSongInfo instance method.

The default value for the Music.songInfoFields property is "text-align: right; color: #000; font-family: Arial, Helvetica, Verdana; font-size: 10pt; font-weight: bold;".

 Music.songInfoFields

 
 CATEGORY   Static Property 
 MODULE   Music Object Extension - Song Info 
 Type   string 
 Default Value   -- see below -- 
 Access   read / write 
 

The Music.songInfoFields static property is a string variable, specifying the default value that should be used for the SongInfoFieldsSTR parameter, if this parameter is not specified when calling the showSongInfo instance method.

The default value for the Music.songInfoFields property is "TITLE, PLAYLENGTH, SIZE, COMPOSER, COPYRIGHT, PERFORMER, PUBLISHER, USE, LICENSEE, TERM, EXPIRATION, NOTES".

 Music.songInfoFieldValueStyle

 
 CATEGORY   Static Property 
 MODULE   Music Object Extension - Song Info 
 Type   string 
 Default Value   -- see below -- 
 Access   read / write 
 

The Music.songInfoFieldValueStyle static property is a string variable, specifying the default value that should be used for the SongInfoFieldValueStyleSTR parameter, if this parameter is not specified when calling the showSongInfo instance method.

The default value for the Music.songInfoFields property is "color: #000; font-family: Arial, Helvetica, Verdana; font-size: 10pt;".

 Music.songInfoImageURL

 
 CATEGORY   Static Property 
 MODULE   Music Object Extension - Song Info 
 Type   string 
 Default Value   an empty string 
 Access   read / write 
 

The Music.songInfoImageURL static property is a string variable, specifying the default value that should be used for the SongInfoImageUrlSTR parameter, if this parameter is not specified when calling the showSongInfo instance method.

 Music.songInfoWindow

 
 CATEGORY   Static Property 
 MODULE   Music Object Extension - Song Info 
 Type   string 
 Access   read only 
 

The Music.songInfoWindow static property is an object reference, being a handle to the song info window that is popped open by the showSongInfo instance method.

Common Parameters

 SongInfoFieldsSTR

 
 CATEGORY   Parameter 
 Type   string 
 

The SongInfoFieldsSTR parameter is a string, specifying the song info fields that should be displayed, as well as the order in which they should appear.


The SongInfoFieldsSTR parameter consists of a series of song info field names seperated by commas (','). The order in which the field names appear determines the order in which they are displayed in the window that is popped open by the showSongInfo instance method.

For the SongInfoFieldsSTR parameter, the following info field names can be specified...

NOTES